import request from '@/utils/request'
import {
    technicalApiUrl
} from '../config'

/*
  专家委员会
*/

/**
 * 分页查询
 * @param data
 */
export function getExpertLsit(data) {
    return request({
        url: `${technicalApiUrl}/business-expert-info/dataList`,
        method: 'post',
        data
    })
}

/**
 * 新增和编辑
 * @param data
 */
export function addExpert(data) {
    return request({
        url: `${technicalApiUrl}/business-expert-info`,
        method: 'post',
        data
    })
}


/**
 * 查看详情
 * @param data
 */
export function getExpertDetail(data) {
    return request({
        url: `${technicalApiUrl}/business-expert-info/getDetail?id=${data.id}`,
        method: 'get',
    })
}

/**
 * 
专家委员会-专家服务分页列表
 * @param data
 */
export function getSerDataList(data) {
    return request({
        url: `${technicalApiUrl}//business-expert-info/serData`,
        method: 'post',
        data
    })
}

  /**
 * 删除
 * @param {Object} data
 */
   export function delExpert(data) {
    return request({
        url: `${technicalApiUrl}/business-expert-info/del`,
        method: 'post',
        data:data.ids
    })
}